package com.example.day04;

import com.example.day03.ConstantEnumIFace;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.RequiredArgsConstructor;

/**
 * @author jeff
 * @since 2023/4/30 17:46
 */
@RequiredArgsConstructor
@JsonSerialize(using = ConstantEnumJsonSerializer.class)
@JsonDeserialize(using = ConstantEnumJsonDeserializer.class)
public enum UserStatus4 implements ConstantEnumIFace<UserStatus4> {

    DISABLE(2,"禁用"),
    ENABLE(3,"启用");

    private final int value;
    private final String desc;

    @Override
    public int getValue() {
        return value;
    }
    @Override
    public UserStatus4[] theEnums() {
        return UserStatus4.values();
    }
}

